<% key = flash.keys.first %>
<alchemy-growl message="<%= flash[key] %>" type="<%= key %>"></alchemy-growl>

<%= turbo_stream.replace "page_nodes" do %>
  <%= render "page_nodes" %>
<% end %>
<%= turbo_stream.update_all '[panel="nodes"]' do %>
  <%= render('alchemy/admin/nodes/label', count: @page.nodes.select(&:persisted?).length) %>
<% end %>
